Skip to content

Use pytest.mark.parametrize for host test fixtures#54

Merged
dannywillems merged 1 commit intomainfrom
fix/37-parametrize-host-tests
Feb 8, 2026
Merged

Use pytest.mark.parametrize for host test fixtures#54
dannywillems merged 1 commit intomainfrom
fix/37-parametrize-host-tests

Conversation

@dannywillems
Copy link
Contributor

Summary

  • Replace loops in test_get_host_success and test_get_host_404 with pytest.mark.parametrize
  • Each fixture file is now a distinct test case (79 tests, up from 70)
  • Empty directories = zero visible cases instead of silent pass

Test plan

  • 79 tests pass (11 fixture files now generate 11 individual test cases)

Closes #37

@dannywillems dannywillems force-pushed the fix/37-parametrize-host-tests branch from a694569 to d753044 Compare February 8, 2026 03:29
Replace loops in test_get_host_success and test_get_host_404
with pytest.mark.parametrize so each fixture file is a distinct
test case. Empty directories produce zero visible cases instead
of a silent pass.

Closes #37
@dannywillems dannywillems force-pushed the fix/37-parametrize-host-tests branch from d753044 to 0830a4c Compare February 8, 2026 03:30
@dannywillems dannywillems merged commit 84b2e4e into main Feb 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use pytest.mark.parametrize instead of loops in host tests

1 participant